import random
"""
for 循环 中断 continue和break
"""
for i in range(5):
    print(f"语句1,循环次数{i + 1}")
    continue
    print("语句2")

print("break=============")
for i in range(5):
    print(f"语句1,循环次数{i + 1}")
    break
    print("语句2")

print()
print("嵌套循环break================")
# break嵌套的情况 break跳出的是当前循环
for i in range(1,6):
    print("语句1")
    for j in range(1,6):
        print("语句2")
        break
        print("语句3")
    print("语句4")
    print("--------------------------")